;
(function () {
  'use strict'

  var link_list = document.querySelectorAll('[data-link]');
  var current_page;

  init();

  function init() {
    current_page = s.get('current_page') || 'home';

    render_page(page);

    link_list.forEach(function (link) {
      link.addEventListener('click', function () {
        var page = link.dataset.link;
        s.set('current_page', page);
        render_page(page);
      });
    });
  };

  function render_page(page_name) {
    var all_page = document.querySelectorAll('[data-page]')
  }
})();